package com.example.springcloud.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 地区分类（如锦江区、成华区）对象 regions
 * 
 * @author hx
 * @date 2025-02-14
 */
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "地区分类（如锦江区、成华区）对象")
@Data
public class Regions implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 地区ID */
    @ApiModelProperty(value = "地区ID")
    private Long regionId;

    /** 地区名称 */
    @Excel(name = "地区名称")
    @ApiModelProperty(value = "地区名称")
    private String regionName;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("regionName", getRegionName())
            .toString();
    }
}
